<template>
    <el-main>
        <ep-breadcrumb></ep-breadcrumb>
        <el-main class="ep-body">
         <epl-top-bar :datas="{formData:form,panel:panel}" showPerson personType="PERSON_ALL_EXACT" psTagType="PERSON_INJURY_QUERY">
                <ep-button size="small" name="刷新"></ep-button>
            </epl-top-bar>
			<epl-userMessage dataType="person" isCodeType idCount="12" :panel="panel">
            </epl-userMessage>                
            <el-form :model="form" ref="form" :rules="rules">
        <el-collapse v-model="activeNames">
        
        <el-collapse-item title="请输入供养亲属基本信息" name="1">
            <el-card class="ep-card">
                            <el-row :gutter="10">
                                <ep-select colspan="8" label="证件类型" name="aac058" :property="form.aac058"  placeholder="请选择证件类型"
                                p="R"   codetype="AAC058"></ep-select>
                                <epl-search-input colspan="8" label="证件号码" name="aac147"  isCodeType :property="form.aac147" placeholder="请输入证件号码"
                                  p="R" :datas="{formData:form,panel:panel}" type="person" tagType="PERSON_ALL_EXACT" api="/business/d100insiup/d02personcommon/PsQueryComm/doPsQueryComm01">
                            <epl-search-input-item header="社会保障号"  name="aac002"></epl-search-input-item>
                            <epl-search-input-item header="姓名"  name="aac003"></epl-search-input-item>

                        </epl-search-input>
                                <ep-input colspan="8" label="姓名" name="aac003" :property="form.aac003" placeholder=""
                                p="D" ></ep-input>
                            </el-row>
                            <el-row :gutter="10">
                                <ep-select colspan="8" label="性别" name="aac004" :property="form.aac004"  placeholder=""
                                p="D"   codetype="AAC004"></ep-select>
                                <ep-select colspan="8" label="民族" name="aac005" :property="form.aac005"  placeholder=""
                                p="D"   codetype="AAC005"></ep-select>
                                <ep-date colspan="8" label="出生日期" name="aac006" :property="form.aac006" placeholder="" 
                                p="D"   type="date" ></ep-date>
                            </el-row>     
                            <el-row :gutter="10">
                               
                                <ep-select colspan="8" label="孤寡标志" name="aac086" :property="form.aac086"  placeholder="请选择孤寡标志"
                                p="R"   codetype="AAC086"></ep-select>
                                <ep-select colspan="8" label="供养关系" name="aae144" :property="form.aae144" placeholder="请选择供养关系"
                                p="R"  codetype="BAE065"></ep-select> 
                                <ep-select colspan="8" label="户口性质" name="aac009" :property="form.aac009"  placeholder=""
                                p="D"   codetype="AAC009"></ep-select>
                            </el-row>
                            <el-row :gutter="10">
                                <ep-date colspan="8" label="开始年月" name="aic160" :property="form.aic160" placeholder="请选择开始年月" 
                                p="R"   type="date" ></ep-date>
                                <ep-date colspan="8" label="终止年月" name="aic301" :property="form.aic301" placeholder="请选择终止年月" 
                                p="E"   type="date" ></ep-date>
                                 <ep-input colspan="8" label="供养亲属抚恤金" name="eac050" :property="form.eac050" placeholder=""
                                p="D" ></ep-input>
                            </el-row> 
                              
                              
                              
                            <el-row :gutter="10">
                                <ep-input colspan="8" label="联系人姓名" name="aae004" :property="form.aae004" placeholder="请输入联系人姓名"
                                p="R" ></ep-input>
                                <ep-input colspan="8" label="联系手机" name="aae005" :property="form.aae005" placeholder="请输入联系人手机号"
                                p="R" ></ep-input>
                               <ep-input colspan="8" label="邮政编码" name="aae007" :property="form.aae007" placeholder=""
                                p="E" ></ep-input>
                            </el-row>
                             
                            <el-row :gutter="10">
                                <ep-select colspan="8" label="户口地址" name="bac030" :property="form.bac030"
                                            placeholder="请选择省" codetype="BAE007" p="R"  :datas="{formData:form}" isChange isCodeType></ep-select>
                                <ep-select colspan="4" label="" label-width="0" name="bac031" :property="form.bac031"
                                            placeholder="请选择市" codetype="BAE012" p="R" :datas="{formData: form}" isChange isCodeType
                                            SelectFilterData=" aaa102 like substr(':bac030',0,2)||'%' and aaa102 like '%00' "></ep-select>
                                <ep-select colspan="4" label="" label-width="0" name="bac032" :property="form.bac032" 
                                            placeholder="请选择区县" codetype="BAE013" p="R" :datas="{formData: form}"
                                            SelectFilterData=" aaa102 like substr(':bac031',0,4)||'%'" ></ep-select>
                                <ep-input colspan="8" label="" label-width="0" name="aac010" :property="form.aac010"
                                            placeholder="请输入详细地址" p="R" :datas="{formData:form}"></ep-input>
                            </el-row>
                            <el-row :gutter="10">
                                <ep-select colspan="8" label="联系地址" name="bae011" :property="form.bae011"
                                            placeholder="请选择省" codetype="BAE007" p="R"  :datas="{formData:form}" isChange isCodeType></ep-select>
                                <ep-select colspan="4" label="" label-width="0" name="bae012" :property="form.bae012"
                                            placeholder="请选择市" codetype="BAE008" p="R" :datas="{formData: form}" isChange isCodeType
                                            SelectFilterData=" aaa102 like substr(':bae011',0,2)||'%' and aaa102 like '%00' "></ep-select>
                                <ep-select colspan="4" label="" label-width="0" name="bae013" :property="form.bae013" 
                                            placeholder="请选择区县" codetype="BAE009" p="R" :datas="{formData: form}"
                                            SelectFilterData=" aaa102 like substr(':bae012',0,4)||'%'" ></ep-select>
                                <ep-input colspan="8" label="" label-width="0" name="aae006" :property="form.aae006"
                                            placeholder="请输入详细地址" p="R" :datas="{formData:form}"></ep-input>
                            </el-row>  
                            

                            

                    </el-card>
                </el-collapse-item> 
            <el-collapse-item title="请输入待遇发放信息" name="2">
                <el-card class="ep-card">
                        <el-row :gutter="10">
                            <ep-select colspan="8" label="发放银行" name="aaz065" :property="form.aaz065" placeholder="请输入发放银行"
                            p="R" codetype="AAZ065"></ep-select>
                            <ep-input colspan="8" label="银行账号" name="aae010" :property="form.aae010"  placeholder="请输入银行账号"
                            p="R" ></ep-input>
                            <ep-input colspan="8" label="银行开户名" name="aae009" :property="form.aae009" placeholder="请输入银行开户名"
                            p="R"  ></ep-input>
                        </el-row>
                        <el-row :gutter="10">
                        <epl-search-bank colspan="8" label="开户行行号" name="aaf002" :property="form.aaf002" placeholder="请选择开户行行号"
                                         p="R" :datas="{formData: form}" codetype="AAZ065" bankName="aaz065" show rules="this.$rules.test_noBlank"></epl-search-bank>
                        <ep-input  colspan="16" label="开户银行名称" name="bac049" :property="form.bac049"
                                   p="R,D" :datas="{formData: form }" rules="this.$rules.test_noBlank"></ep-input >
                    </el-row>
                </el-card>
            </el-collapse-item> 
        </el-collapse>
            </el-form>
         <el-card class="ep-card">
             <ep-title>已存在供养亲属定期待遇信息</ep-title>
                    <ep-table :data="tableData1" border style="width: 100%;" :titleFilter="demo1">
                        <ep-table-column width="150" sortable name="aac002" header="供养亲属社会保障号"></ep-table-column>
                        <ep-table-column sortable name="aac003" header="供养亲属姓名"></ep-table-column>
                        <ep-table-column sortable name="aae144" header="供养关系"></ep-table-column>
                        <ep-table-column sortable name="aaa036" header="待遇类别"></ep-table-column>
                        <ep-table-column sortable name="aae116" header="待遇发放状态"></ep-table-column>
                        <ep-table-column sortable name="aae041" header="开始年月"></ep-table-column>
						<ep-table-column sortable name="aae042" header="终止年月"></ep-table-column>
                        <ep-table-column sortable name="aae019" header="原待遇金额"></ep-table-column>
						<ep-table-column sortable name="aae019_new" header="核定后待遇金额"></ep-table-column>
                    </ep-table>
                <el-row type="flex" justify="center">
					<ep-saveButton id="doSave" top="20" type="primary" bottom="20" ref="save"  @formValidate="formValidate" 
                                    :validate="['form']"   :datas="{formData: form,panel:panel}" name="保存"></ep-saveButton>
	                <ep-button id="cal01" top="20" type="primary" api="doCalculate" bottom="20"
                    :datas="{formData: form}" name="计算"></ep-button>
                </el-row>
         </el-card>
        </el-main>
    </el-main>
</template>


<script src="../js/InjuryDependantsPersonAddJS.js"></script>
